import Vue from 'vue'
import Vuex from 'vuex'
import department from '@/views/home/organization/store.js'
import homePage from '@/views/home/homepage/store.js'
import employees from '@/views/home/employees/store.js'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    user: {}
  },
  mutations: {
    userInfoData(state, item) {
      state.user = item
    }
  },
  actions: {
  },
  modules: {
    department,
    homePage,
    employees,

  }
})
